WooCommerce\Square\Sync\Product_Import D

Total Complexity 226
Dependencies 14
Dependents 1
Total lines 1,335
Lines of code 733
Logical lines of code 423
Comment lines 292
Methods 21
Properties 0

Methods 21

Method Rating Maintainability Complexity Lines of code
save_variations()
D
24
46 149
save_product_meta()
D
28
39 122
import_products()
D
31 32 103
extract_product_data()
C
34 23 85
wc_save_product_price()
A
50 14 28
create_product_from_square_data()
A
48 12 28
update_product()
A
51 10 24
record_error()
A
53 10 19
import_inventory()
A
46 7 38
import_product()
S
53 7 21
extract_square_item_variation_data()
S
50 5 28
clear_product()
S
58 4 16
item_variation_has_matching_sku()
S
62 4 12
get_attribute_taxonomy_by_slug()
S
63 3 11
item_variation_has_missing_sku()
S
62 3 11
update_simple_product_to_variable()
S
54 2 22
save_product_images()
S
98 1 1
upload_product_image()
S
98 1 1
set_product_image_as_attachment()
S
98 1 1
get_import_api_limit()
S
74 1 4
assign_next_steps()
S
68 1 9